package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcOldOutItemMapper;
import com.csun.cmny.provider.model.domain.OmcOldOutItem;
import com.csun.cmny.provider.model.vo.old_out.OldOutItemVo;
import com.csun.cmny.provider.service.OmcOldOutItemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-29 09:38
 * @Description: the class omc old out item service impl
 */
@Service
@Transactional
public class OmcOldOutItemServiceImpl extends BaseService<OmcOldOutItem>
        implements OmcOldOutItemService {

    @Resource
    private OmcOldOutItemMapper omcOldOutItemMapper;

    /**
     * query omc old out item by old out id
     *
     * @param oldOutId the old out id
     *
     * @return the old out item vo
     */
    @Override
    public List<OldOutItemVo> queryOldOutItemByOldOutId(Long oldOutId) {

        return omcOldOutItemMapper.queryOldOutItemByOldOutId(oldOutId);
    }
}
